﻿using english_sentences.MongoRepository;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;

namespace english_sentences.Models
{
    [EntityDatabase("englishsentences-database")]
    [EntityCollection("Sentences")]
    public class Sentence : IEntity<string>
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }
        public int ChapterNo { get; set; }
        public string FileUrl { get; set; }
        public string EnglishText { get; set; }
        public string ChineseText { get; set; }
        public long Sequence { get; set; }
        public long Duration { get; set; }//millisecond
        public string VoiceType { get; set; }
        public string UserId { get; set; }

    }
}
